package com.alibaba.mapper;


import com.alibaba.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface DataMapper {
    @Select(value = "select count(followId) from follow where userId=#{userId}")
    int fansnum(int userId);
    @Select(value = "select count(followId) from follow where fansId=#{userId}")
    int follownum(int userId);
    @Select(value = "select * from user where userId=#{userId}")
    User getUser(int userId);
}
